<?php
namespace Tbf\Bundle\YntAuthBundle\Model;
use Tbf\Component\Arrays\ArrayFunction;

class ShareRequest {
    /**
     * @var string
     */
    protected $transaction_id;
    /**
     * @var string
     */
    protected $content;
    /**
     * @var string
     */
    protected $url;
    /**
     * @var string
     */
    protected $imageUrl;
    /**
     * @var string
     */
    protected $videoUrl;
    function __construct($input){
        $err = ArrayFunction::checkParameterExist($input,array(
            'transaction_id','content','url'));
        if ($err!==null){
            throw new \Exception($err);
        }
        $this->transaction_id = $input['transaction_id'];
        $this->content = $input['content'];
        $this->url = $input['url'];
    }
    /**
     * @param string $content
     */
    public function setContent($content)
    {
        $this->content = $content;
    }

    /**
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * @param string $imageUrl
     */
    public function setImageUrl($imageUrl)
    {
        $this->imageUrl = $imageUrl;
    }

    /**
     * @return string
     */
    public function getImageUrl()
    {
        return $this->imageUrl;
    }

    /**
     * @param string $transaction_id
     */
    public function setTransactionId($transaction_id)
    {
        $this->transaction_id = $transaction_id;
    }

    /**
     * @return string
     */
    public function getTransactionId()
    {
        return $this->transaction_id;
    }

    /**
     * @param string $url
     */
    public function setUrl($url)
    {
        $this->url = $url;
    }

    /**
     * @return string
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * @param string $videoUrl
     */
    public function setVideoUrl($videoUrl)
    {
        $this->videoUrl = $videoUrl;
    }

    /**
     * @return string
     */
    public function getVideoUrl()
    {
        return $this->videoUrl;
    }

}